package com.yc.damai.web.feign;

import com.yc.damai.entity.DmProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@FeignClient(value = "damai-order", fallback = OrderDoImpl.class)
public interface OrderDo {

    @RequestMapping("queryNew")
    public List<DmProduct> queryNew();

    @RequestMapping("queryHot")
    public List<DmProduct> queryHot();
}
